package com.wanxi.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Li
 * @Date 2023/5/4 15:08
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel(value = "律师",description = "用于描述律师对象")
@TableName("lawyers")
public class LawyerModel {
    @TableId(value = "id", type = IdType.ASSIGN_ID)//雪花算法
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "律师id",example = "1678239961299619841")
    private Long id;
    @ApiModelProperty(value = "律师姓名",example = "张三")
    private String name;//律师姓名
    @ApiModelProperty(value = "律师头像",example = "xx.jpg")
    private String image;//律师图片
    @ApiModelProperty(value = "年龄",example = "36")
    private Integer age;//年龄
    @ApiModelProperty(value = "性别",example = "女")
    private String sex;//性别
    @ApiModelProperty(value = "角色",example = "合伙人")
    private String role;//角色
    @ApiModelProperty(value = "联系电话",example = "13698767896")
    private String phone;//电话
    @ApiModelProperty(value = "简介",example = "优秀律师")
    private String introduce;//简介
    @ApiModelProperty(value = "状态",example = "1")
    private Integer enable;
    @ApiModelProperty(value = "备注",example = "金牌律师")
    private String remark;
    @ApiModelProperty(value = "创建时间",example = "2023-05-04 18:59:20")
    private String createTime;
    @ApiModelProperty(value = "创建时间",example = "2023-07-04 8:42:20")
    private String updateTime;
    @ApiModelProperty(value = "搜索起始年龄",example = "20")
    @TableField(exist = false)
    private Integer startAge;
    @ApiModelProperty(value = "搜索终止年龄",example = "50")
    @TableField(exist = false)
    private Integer endAge;
    @ApiModelProperty(value = "页数",example = "1")
    @TableField(exist = false)
    private Integer page; //页数
    @ApiModelProperty(value = "每页条数",example = "10")
    @TableField(exist = false)
    private Integer limit; //条数
}
